from django.db import models

# Create your models here.
from django.db import models


class performanceData(models.Model):
    create_time = models.DateTimeField('创建时间', auto_now_add=True)
    data = models.TextField(blank=True, null=True)

    class Meta:
        managed = True
        db_table = "performanceData"


class gameProjects(models.Model):
    create_time = models.DateTimeField('创建时间', auto_now_add=True)
    project_name = models.CharField(max_length=50, null=False)
    game_performance = models.ManyToManyField(to='performanceData')

    class Meta:
        managed = True
        db_table = "gameProjects"


class test(models.Model):
    projectName = models.CharField(max_length=20)


class test1(models.Model):
    projectName = models.ForeignKey(test.projectName, on_delete=models.CASCADE)
    ruleType = models.CharField(max_length=20)
    orginTableName = models.CharField(max_length=20)
    boundTableName = models.CharField(max_length=20)
    fieldName = models.CharField(max_length=20)
    isEmpty = models.CharField(max_length=20)
    isDuplicate = models.CharField(max_length=20)
    dataScope = models.CharField(max_length=20)
